package com.woniuxy.system;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author yellow Doctor
 * @date 2025-03-18
 * @desc 蜗牛创想：www.woniuxy.com
 */
//@EnableScheduling             //开启 定时任务
@EnableKnife4j                //开启 knife4j
@EnableTransactionManagement  //开启事务
@MapperScan("com.woniuxy.system.mapper")
@ComponentScan(
        value = {
                "com.woniuxy.system",
                "com.woniuxy.common", //扫描common 中的组件
                "com.woniuxy.sddfp.api.bank.fallback", //扫描fallback 中的组件
        }
)
@EnableFeignClients(
        basePackages = "com.woniuxy.sddfp.api"
)
@SpringBootApplication
public class SystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class,args);
    }
}
